# frozen_string_literal: true

class ApplicationRecord < ActiveRecord::Base
  self.abstract_class = true

  include Pageable

  def resource_id
    "#{self.class.name}<#{id}>"
  end

  def raise(*several_variants)
    logger.error "Resource: #{resource_id}"

    super(*several_variants)
  end
end
